package cloud.keveri.response4j;

import cloud.keveri.base.result.Response;

/**
 * <p>
 * 作者：沈自在
 **/
public class DefaultStringResponseWrapper implements StringResponseWrapper {

    private final ResponseMaker responseMaker;

    public DefaultStringResponseWrapper(ResponseMaker responseMaker) {
        this.responseMaker = responseMaker;
    }

    /**
     *
     */
    @Override
    public Response wrapString(String data) {
        return responseMaker.newSuccessInstance(data);
    }
}
